package com.example.demo.service;

import com.example.demo.vo.UserProfileVO;
import com.example.demo.vo.ProductVO;
import java.util.List;

import com.example.demo.service.UserProfileService;
import com.example.demo.vo.UserProfileVO;
import com.example.demo.vo.ProductVO;
import com.example.demo.mapper.UserProfileMapper;
import com.example.demo.model.CommentInfo;
import com.example.demo.mapper.SellerProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserProfileService {

    @Autowired
    private UserProfileMapper userProfileMapper;

    @Autowired
    private SellerProductMapper sellerProductMapper;


    public UserProfileVO getUserProfile(Long userId) {
        return userProfileMapper.getUserProfile(userId);
    }

    public List<ProductVO> getUserProducts(Long userId) {
        return sellerProductMapper.getProductsByUserId(userId);
    }

	public List<CommentInfo> getUserComments(Long userId) {
		return userProfileMapper.getUserComments(userId);
	}
} 